<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:spring="http://www.springframework.org/tags" version="2.0">
	<jsp:directive.page contentType="text/html; charset=UTF-8"
		pageEncoding="UTF-8" session="true" />
	<jsp:output doctype-root-element="html"
		doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
		doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
		omit-xml-declaration="true" />
	<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><spring:message code="page.showPenalty.title" /></title>
<c:url value="/resources/style.css" var="cssRes" />
<link href="${cssRes}" rel="stylesheet" type="text/css" />
</head>
<body>
	<c:import url="header.jsp" />

	<c:if test="${paymant ne null}">
		<spring:message code="customerpage.paymant.paymantDate" />: <c:out
			value="${paymant.paymantDate}"></c:out>
		<br />
		<spring:message code="customerpage.paymant.paid" />: <c:out
			value="${paymant.paid}" />
		<br />
		<c:if test="${payment.bonus ne null}">
			<c:url value="/customer/show/bonus/${paymant.bonus.bonusId}"
				var="bonusRef" />
			<spring:message code="customerpage.paymant.bonus" />: <a
				href="${bonusRef}"><c:out value="${paymant.bonus.amount}" /></a>
			<br />
		</c:if>
		<c:if test="${payment.bonus ne null}">
			<spring:message code="customerpage.paymant.penalty" />: <a
				href="/customer/show/penalty/${paymant.penalty.penaltyId}"><c:out
					value="${paymant.penalty.amount}" /></a>
			<br />
		</c:if>
	</c:if>

	<c:url value="/customer" var="backRef" />
	<a href="${backRef}"><spring:message
			code="customerpage.paymant.back" /></a>

</body>
	</html>
</jsp:root>